package com.sparrow.socket.tcp.session.manager;

import com.sparrow.common.metric.MetricsManager;
import com.sparrow.socket.tcp.session.impl.GameSession;
import javax.annotation.PostConstruct;

/**
 * 游戏会话管理
 */
public class GameSessionManager extends AbstractSessionManager<Long, GameSession> {

    @PostConstruct
    private void init() {
        MetricsManager.gauge("OnlinePlayerCount", () -> (double)size());
    }
}
